package searchteam.client.ui.callbacks;

import searchteam.client.ui.widgets.DataPanel;
import searchteam.client.ui.widgets.InfoPopUp;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class createTeamCallback implements AsyncCallback<Integer> {

	private DataPanel panel;
	
	public createTeamCallback(DataPanel p) {
		panel = p;
	}
	
	public void onFailure(Throwable caught) {
		new InfoPopUp(caught.getMessage(), "Erreur");
	}

	public void onSuccess(Integer result) {
		panel.refresh();
	}

}
